<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<body>
<head th:fragment="head">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<link media="all" href="/library/skin/tool_base.css" rel="stylesheet" type="text/css" />
	<script src="/library/js/headscripts.js" type="text/javascript"></script>
	<script th:src="@{/js/common.js}" type="text/javascript"></script>
	<title th:text="#{index_title}">Microsoft Admin Tool</title>
</head>

<div th:fragment="bootstrap">
	<script>includeLatestJQuery('microsoft-admin');</script>
	<script>includeWebjarLibrary('bootstrap');</script>
	<script th:inline="javascript">
		(function() {
			const toolId = /*[[${#httpServletRequest.getAttribute('sakai.tool.placement.id')}]]*/'toolId';
			if (toolId) {
			  setMainFrameHeight('Main' + toolId.replace(/-/g, 'x'));
			}
		})();
	</script>
</div>

<div th:fragment="admin (admin)">
	<div th:unless="${admin}" class="sak-banner-error" role="alert" th:text="#{common_danger}">
		You must be an admin to use this tool, please contact your Administrator.
	</div>
</div>

<div th:fragment="error">
	<div th:if="${exception_error != null}">
		<div class="sak-banner-error" id="exception_error"  th:text="${exception_error}"></div>

		<script th:inline="javascript">
			(function() {
				setTimeout(() => {document.getElementById('exception_error').classList.add('hidden')}, 10000);
			})();
		</script>
	</div>
</div>
</body>
</html>
